package com.nuc.zyt.day04.multiprocessing;

import java.util.concurrent.Callable;

/**
 * @ClassName Thread02
 * @Description TODO
 * @Author 耀酱
 * @Date 2023/5/29 19:09
 * @Version 1.0
 */

public class Thread02 implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        System.out.println("实现callable接口");
        for (int i = 1; i <= 25; i++) {
            sum+=i;
            System.out.println(sum);
        }
        return sum;
    }
}
